package org.footballmanager.pandafootball.system.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;
import java.util.Map;

@Setter
@Getter
@ToString
public class JsonReturn {
    protected String msg;

    protected Object obj;

    protected List<Object> list;

    protected Map<String, Object> map;

    public JsonReturn(String msg) {
        this.msg = msg;
    }

    public JsonReturn(String msg, Object obj) {
        this.msg = msg;
        this.obj = obj;
    }

    public JsonReturn(String msg, List<Object> list) {
        this.msg = msg;
        this.list = list;
    }

    public JsonReturn(String msg, Map<String, Object> map) {
        this.msg = msg;
        this.map = map;
    }
}
